# -*- coding: utf-8 -*-

from datetime import datetime
from pydantic import BaseModel
from typing import Any, Dict

from schemas.base import BaseModelMixin

class PermisionBase(BaseModel):
    parent_id: int | None = None
    name: str | None = None
    desc: str | None = None
    status: int | None = None

class PermisionCreate(PermisionBase):
    pass

class PermisionUpdate(PermisionBase):
    pass

class Permision(PermisionBase, BaseModelMixin):
    class Config:
        from_attributes = True
        